﻿

using System;
using System.Runtime.Serialization;
using XStudio.Core.Data;

namespace Core.Manage.User
{
    /// <summary>
    /// 帐号表实体
    /// </summary>
    [DataContract]
    
    [Table("QM_AccountTB")]
    public partial class AccountEntity : EntityObject
    {
        #region 内部变量

        private int _AccountID;
        private int _AccountTypeID;
        private string _Account;
        private string _Password;
        private DateTime _CreateDateTime;

        #endregion

        //属性

        #region AccountID
        /// <summary>
        /// AccountID
        /// </summary>
        [DataMember]
        [Column(IsUnique = true, IsPrimaryKey = true, Name = "AccountID", IsNull = false)]
        public int UID
        {
            get { return _AccountID; }
            set
            {
                _AccountID = value;
                ReportPropertyChanged("UID");
            }
        }
        #endregion

        #region 0-农户，1-商户，2-生资，3-合作社
        /// <summary>
        /// 0-农户，1-商户，2-生资，3-合作社
        /// </summary>
        [DataMember]
        [Column(Name = "AccountTypeID", IsNull = false)]
        public int AccountTypeID
        {
            get { return _AccountTypeID; }
            set
            {
                _AccountTypeID = value;
                ReportPropertyChanged("AccountTypeID");
            }
        }
        #endregion

        #region Account
        /// <summary>
        /// Account
        /// </summary>
        [DataMember]
        [Column(Name = "Account", IsNull = false)]
        public string Account
        {
            get { return _Account; }
            set
            {
                _Account = value;
                ReportPropertyChanged("Account");
            }
        }
        #endregion

        #region Password
        /// <summary>
        /// Password
        /// </summary>
        [DataMember]
        [Column(Name = "Password", IsNull = false)]
        public string Password
        {
            get { return _Password; }
            set
            {
                _Password = value;
                ReportPropertyChanged("Password");
            }
        }
        #endregion

        #region CreateDateTime
        /// <summary>
        /// CreateDateTime
        /// </summary>
        [DataMember]
        [Column(Name = "CreateDateTime", IsNull = false)]
        public DateTime CreateDateTime
        {
            get { return _CreateDateTime; }
            set
            {
                _CreateDateTime = value;
                ReportPropertyChanged("CreateDateTime");
            }
        }
        #endregion

    }
}
